public class Human {
    private String name;//姓名
    private String gender;//性别
    private int age;//年龄
    private String talent;//天赋
    private String realm;//境界

    //空参 + 实参
    public Human(){}
    public Human(String name, String gender, int age, String talent, String realm){
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.talent = talent;
        this.realm = realm;
    }

    // set 和 get 方法
    public void setname(String name){
        this.name = name;
    }
    public String getname(){
        return name;
    }

    public void setgender(String gender){
        this.gender = gender;
    }
    public String getgender(){
        return gender;
    }

    public void setage(int age){
        this.age = age;
    }
    public int getage(){
        return age;
    }

    public void settalent(String talent){
        this.talent = talent;
    }
    public String gettalent(){
        return talent;
    }

    public void setrealm(String realm){
        this.realm = realm;
    }
    public String getrealm(){
        return realm;
    }
}
